//
// Created by wze-zero on 2024/7/15 015.
//
#include <iostream>
#include <string>

using namespace std;

int main() {
    string str;
    char c;
    getline(cin, str);
    int whitespace = 0,digits = 0,chars = 0,others = 0;
    for (int i = 0; i < str.length(); ++i) {
        c=str.at(i);
        if (c==' '){
            ++whitespace;
        } else if(c>='0'&&c<='9') {
            ++digits;
        } else if ((c>='a'&&c<='z')||(c>='A'&&c<='Z')){
            ++chars;
        } else{
            ++others;
        }
    }
    cout << "chars : " << chars
         << " whitespace : " << whitespace
         << " digits : " << digits
         << " others : " << others << endl;
    return 0;
}